package deepr.src.entity;

import com.google.gson.Gson;
import deepr.anno.Property;
import deepr.anno.Schema;
import deepr.anno.SchemaType;
import deepr.anno.Type;
import lombok.Data;

@Data
@Schema(name = "location", type = SchemaType.NEO4J)
public class Location {
    @Property(primaryKey = true)
    private Integer id;
    @Property
    private String name;

    @Property(type = Type.JsonArray)
    private Gson record2;
    @Property(type = Type.JSON)
    private Gson info;

    @Property
    private Integer area_id;

    @Property(schema = Area.class, forProperty = "area_id")
    private Area area;


}
